
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<?php
include_once("config.php");
session_start();
if (isset($_session['user']) && isset($_session['user']->id))
{
	header("location:draftpage.php");
}
else if (isset($_cookie['user']))
{
	header("location:checklogin.php");
}
else
{
	header("location:login.php");
}

// $teamRepo = new TeamRepo();
// $draftRepo = new DraftRepo();
// $draft = $draftRepo->get(2);
// $team = $teamRepo->getPickingTeam($draft);
// print_r($team->name);

?>

</body>
</html>